package com.raising.modules.front.portal.controller;

import com.raising.framework.controller.BaseController;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 前台
 * @author GaoYuan
 * @datetime 2017/12/14 下午3:44
 */
@Controller
@RequestMapping(value = "${frontPath}")
public class PortalController extends BaseController{

    @RequestMapping(value = "", method = RequestMethod.GET)
    public String indexs(Model model) throws Exception {
        return "redirect:"+frontPath+"/home";
    }
    /**
     * 跳转 主页
     * @author GaoYuan
     * @datetime 2017/12/14 下午4:06
     */
    @RequestMapping(value = "/home", method = RequestMethod.GET)
    public String home(Model model) throws Exception {
        return "front/portal";
    }

    /** 获取 轮播图数据等 json
     *  TODO
     */

}
